
#include "../libpatches.h"
#include "noise.h"
#include <stdlib.h>
#include <stdio.h>

static void module_noise_processor(module m);

void module_noise_initializer(module m) {
	make_outputs(m, 1);

	m->output_names[0] = "out";

	m->processor = module_noise_processor;
}

static void module_noise_processor(module m) {
	//extern int sampling_rate;
	output o = m->outputs[0];

	/*
	fprintf(stderr, "processing noise\n");
	*/

	*o = rand() / (double) RAND_MAX;

}

